package com.androidbook.bro;
import java.io.Serializable;

public class Wheel_Joy implements Serializable {

	private static final long serialVersionUID = 19921128;
	private double axis_Y;
	private Boolean key_up;
	private Boolean key_down;
	private Boolean key_A;
	private Boolean key_B;
	private Boolean key_C;
	private Boolean key_D;

	public Wheel_Joy() {

	}

	public void keyFilling() {
		key_up = false;
		key_down = false;
		axis_Y = 0;
		key_A = false;
		key_B = false;
		key_C = false;
		key_D = false;
	}

	public void keyFilling(double aKey_Acs, Boolean aKey_Up, Boolean aKey_Down,
			Boolean aKey_Left, Boolean aKey_Right, Boolean aKey_A, Boolean aKey_B, Boolean aKey_C,
			Boolean aKey_D) {
		key_up = aKey_Up;
		key_down = aKey_Down;
		axis_Y = aKey_Acs;
		key_A = aKey_A;
		key_B = aKey_B;
		key_C = aKey_C;
		key_D = aKey_D;

	}

	public void keyFilling(String aKey_Name, Boolean aValue) {
		if (aKey_Name == "UP") {
			key_up = aValue;
		}
		if (aKey_Name == "DOWN") {
			key_down = aValue;
		}
		if (aKey_Name == "A") {
			key_A = aValue;
		}
		if (aKey_Name == "B") {
			key_B = aValue;
		}
		if (aKey_Name == "C") {
			key_C = aValue;
		}
		if (aKey_Name == "D") {
			key_D = aValue;
		}
	}

	public void keyFilling(String aKey_Name, double aValue) {
		if (aKey_Name == "Y") {
			axis_Y = aValue;
		}
	}

	public Boolean keySee(String aKey_Name) {
		if (aKey_Name == "UP") {
			return key_up;
		}
		if (aKey_Name == "DOWN") {
			return key_down;
		}
		if (aKey_Name == "A") {
			return key_A;
		}
		if (aKey_Name == "B") {
			return key_B;
		}
		if (aKey_Name == "C") {
			return key_C;
		}
		if (aKey_Name == "D") {
			return key_D;
		}
		return false;

	}

	public double axisSee() {
		return axis_Y;
	}
	



}
